public class test1 {
    public static void main(String[] args) {
        //创建字符串方式
        //1.传递字符数组
        char[] ch = {'a','b','c'};
        String str = new String(ch);
        System.out.println(str);

        //2.创建字节数组
        byte[] bytes = {97,98,99,100};
        String str2 = new String(bytes);
        System.out.println(str2);
    }
}
